// src/stores/userStore.ts
import { defineStore } from 'pinia'
import type { SensorsInfo } from './type'

export const useCommonStore = defineStore('common', {
  state: () => ({
    // 代理人信息
    sensorsInfo: {
      loginName: '闫壮志', // 代理人姓名
      userid: '90281' // 代理人id
    }
  }),
  actions: {
    // 设置代理人信息
    setSensorsInfo(data: SensorsInfo) {
      this.sensorsInfo = data
    }
  }
})
